package com.yyn.Learning.client;

import com.yyn.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

    @FeignClient(name= "service-vod",fallback = VodClientImpl.class)
    @Component  //交给spring管理
    public interface VodClient {
    //    写需要调用该服务的方法（方法暴露）
    //    @PathVariable("videoId")一定要在该注解内定义好他的参数值
    //    根据id删阿里云视频
    @DeleteMapping("/aliyunvod/removeVideo/{videoId}")
     R removeVideo(@PathVariable("videoId") String videoId);
    }

